//package com.pro.common.file.storage.controller;
//
//import com.pro.common.api.statics.user.file.storage.enums.EnumFileStoragePlatform;
//import com.pro.common.file.storage.service.factory.FileStorageServiceFactory;
//import io.swagger.v3.oas.annotations.parameters.RequestBody;
//import jakarta.servlet.http.HttpServletRequest;
//import jakarta.servlet.http.HttpServletResponse;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Map;
//
//@Slf4j
//@RestController
//@RequestMapping("/webhook")
//@AllArgsConstructor
//public class FileStorageWebhookController {
//
//    private FileStorageServiceFactory factory;
//
////    /**
////     * 批量生成预签名上传 URL
////     */
////    @PostMapping("/upload/callback/{platform}")
////    public Object uploadCallback(
////            HttpServletRequest request,
////            HttpServletResponse response,
////            @RequestHeader Map<String, String> headers,
////            @RequestParam(required = false) Map<String, Object> paramMap,
////            @PathVariable("platform") String platform,
////            @RequestBody String body
////    ) {
////        return factory.getService(EnumFileStoragePlatform.valueOf(platform)).uploadCallback(headers, paramMap, body);
////    }
//}
